Package particleengine
Class BaseIEmitter
java.lang.Object
particleengine.IEmitter
particleengine.BaseIEmitter
Partial implementation of
IEmitter that omits only the particle generation function.
All other properties are set to default values and may be overwritten as required.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class particleengine.IEmitter
burst, disableDynamicAnchoring, enableDynamicAnchoring, isDynamicAnchoring, isSmoothDynamic, setSmoothDynamic, stream, stream, stream
-
Constructor Details
-
BaseIEmitter
public BaseIEmitter()
-
-
Method Details
-
getLayer
public com.fs.starfarer.api.combat.CombatEngineLayers getLayer() -
getCampaignLayer
public com.fs.starfarer.api.campaign.CampaignEngineLayers getCampaignLayer()- Specified by:
getCampaignLayerin classIEmitter- Returns:
- Campaign layer particles should be rendered on.
-
isAlwaysRenderInCampaign
public boolean isAlwaysRenderInCampaign()- Specified by:
isAlwaysRenderInCampaignin classIEmitter- Returns:
- Whether the particles should persist through campaign location transitions.
Note that particle and emitter positions are world-space-relative, not screen-space-relative, so
dynamic anchoring and changing emitters' positions in a
CurrentLocationChangedListeneris required to fix particles' screen-space positions.
-
getLocation
public org.lwjgl.util.vector.Vector2f getLocation()- Specified by:
getLocationin classIEmitter- Returns:
- Absolute location of this emitter, in world coordinates.
-
getSprite
public com.fs.starfarer.api.graphics.SpriteAPI getSprite() -
getXDir
public float getXDir() -
getBlendSourceFactor
public int getBlendSourceFactor()- Specified by:
getBlendSourceFactorin classIEmitter- Returns:
- Source blend factor, e.g.
GL11.GL_SRC_ALPHA.
-
getBlendDestinationFactor
public int getBlendDestinationFactor()- Specified by:
getBlendDestinationFactorin classIEmitter- Returns:
- Destination blend factor, e.g.
GL11.GL_ONE_MINUS_SRC_ALPHA.
-
getBlendFunc
public int getBlendFunc()- Specified by:
getBlendFuncin classIEmitter- Returns:
- Blending operation, e.g.
GL14.GL_FUNC_ADD.
-
getRenderRadius
public float getRenderRadius()- Specified by:
getRenderRadiusin classIEmitter- Returns:
- Distance from edge of screen beyond which particles are culled before generation. This applies to the emitter's location rather than individual particles' locations.
-